package com.sy.entity;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class Notice {
    private Integer id;
    private String title;
    private String content;
    private Date ctime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ",title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", ctime=" + ctime +
                '}';
    }
}
